package jgl.vajra.operator.part.mine.activity;

import jgl.vajra.operator.R;
import jgl.vajra.operator.databinding.ActivityChangePhoneBinding;
import jgl.vajra.operator.part.mine.contract.ChangePhoneContract;
import jgl.vajra.operator.part.mine.viewModel.ChangePhoneViewModel;
import jgl.vajra.operator.utils.CountUtils;
import jgl.vajra.operator.widget.mvvm.factory.CreateViewModel;
import jgl.vajra.operator.widget.mvvm.view.BaseMVVMActivity;
import jgl.vajra.operator.widget.utils.ToastUtils;

@CreateViewModel(ChangePhoneViewModel.class)
public class ChangePhoneActivity extends BaseMVVMActivity<ChangePhoneViewModel, ActivityChangePhoneBinding> implements ChangePhoneContract.View {
    @Override
    public int getLayoutId() {
        return R.layout.activity_change_phone;
    }

    @Override
    public void initView() {
        super.initView();
        mBinding.setView(this);
    }

    //获取验证码
    @Override
    public void onVerifyCode() {
        CountUtils.getCount(mBinding.tvVerifyCode);
    }

    //确定
    @Override
    public void onDetermine() {
        ToastUtils.showShort("确定");
        finish();
    }

}
